"""
wx 配置读取
"""
import os
import configparser


class ConfigParser:

    def __init__(self):
        self.config_path = os.path.join(os.path.dirname(__file__), "config.ini")
        self.conf = configparser.ConfigParser()
        self.conf.read(self.config_path, encoding="utf-8")

    def get_access_key_id(self):
        """
        获取 access_key_id
        """
        return self.conf.get("aliyun", "ALIBABA_CLOUD_ACCESS_KEY_ID")

    def get_access_key_secret(self):
        """
        获取 access_key_secret
        """
        return self.conf.get("aliyun", "ALIBABA_CLOUD_ACCESS_KEY_SECRET")
